package com.dianping.cat.consumer.transaction.model.entity;

import com.dianping.cat.consumer.transaction.model.BaseEntity;
import com.dianping.cat.consumer.transaction.model.IVisitor;



public class GraphTrend
  extends BaseEntity<GraphTrend>
{
  private int m_duration;
/*  12 */   private String m_sum = "";

/*  14 */   private String m_avg = "";

/*  16 */   private String m_count = "";

/*  18 */   private String m_fails = "";





  public GraphTrend(int duration) { this.m_duration = duration; }




  public void accept(IVisitor visitor) { visitor.visitGraphTrend(this); }



  public boolean equals(Object obj) {
/*  34 */     if (obj instanceof GraphTrend) {
/*  35 */       GraphTrend _o = (GraphTrend)obj;

/*  37 */       if (getDuration() != _o.getDuration()) {
/*  38 */         return false;
      }

/*  41 */       return true;
    }

/*  44 */     return false;
  }


/*  48 */   public String getAvg() { return this.m_avg; }



/*  52 */   public String getCount() { return this.m_count; }



/*  56 */   public int getDuration() { return this.m_duration; }



/*  60 */   public String getFails() { return this.m_fails; }



/*  64 */   public String getSum() { return this.m_sum; }




  public void mergeAttributes(GraphTrend other) {
    assertAttributeEquals(other, "graph-trend", "duration", Integer.valueOf(this.m_duration), Integer.valueOf(other.getDuration()));

/*  80 */     this.m_sum = other.getSum();

/*  82 */     this.m_avg = other.getAvg();

/*  84 */     this.m_count = other.getCount();

/*  86 */     this.m_fails = other.getFails();
  }

  public GraphTrend setAvg(String avg) {
/*  90 */     this.m_avg = avg;
/*  91 */     return this;
  }

  public GraphTrend setCount(String count) {
/*  95 */     this.m_count = count;
/*  96 */     return this;
  }

  public GraphTrend setDuration(int duration) {
/* 100 */     this.m_duration = duration;
/* 101 */     return this;
  }

  public GraphTrend setFails(String fails) {
/* 105 */     this.m_fails = fails;
/* 106 */     return this;
  }

  public GraphTrend setSum(String sum) {
/* 110 */     this.m_sum = sum;
/* 111 */     return this;
  }

  public GraphTrend() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/transaction/model/entity/GraphTrend.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */